package whu.cn.whushare.ui.main.known.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.List;

import whu.cn.whushare.bean.User;

public class Question implements Parcelable {

	@Expose
	@SerializedName("questionId")
	public String id;
	@Expose
	@SerializedName("userId")
	public String uid;
	@Expose
	@SerializedName("questionName")
	public String questionName;
	@Expose
	@SerializedName("questionDesc")
	public String questionDesc;
	@Expose
	@SerializedName("createTime")
	public String createTime;
	@Expose
	@SerializedName("lastMotify")
	public String lastMotify;
	@Expose
	@SerializedName("answers")
	public List<Answer> answers;
	@Expose
	@SerializedName("questionTopics")
	public List<String> questionTopics;
	@Expose
	@SerializedName("attentionQuestions")
	public List<String> attentionQuestions;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getQuestionName() {
		return questionName;
	}

	public void setQuestionName(String questionName) {
		this.questionName = questionName;
	}

	public String getQuestionDesc() {
		return questionDesc;
	}

	public void setQuestionDesc(String questionDesc) {
		this.questionDesc = questionDesc;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getLastModify() {
		return lastMotify;
	}

	public void setLastModify(String lastModify) {
		this.lastMotify = lastModify;
	}

	public List<Answer> getAnswers() {
		return answers;
	}

	public void setAnswers(List<Answer> answers) {
		this.answers = answers;
	}

	public List<String> getQuestionTopics() {
		return questionTopics;
	}

	public void setQuestionTopics(List<String> questionTopics) {
		this.questionTopics = questionTopics;
	}

	public List<String> getAttentionQuestions() {
		return attentionQuestions;
	}

	public void setAttentionQuestions(List<String> attentionQuestions) {
		this.attentionQuestions = attentionQuestions;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(uid);
		dest.writeString(questionName);
		dest.writeString(questionDesc);
		dest.writeString(createTime);
		dest.writeString(lastMotify);
         dest.writeTypedList(answers);
        dest.writeStringList(questionTopics);
		dest.writeStringList(attentionQuestions);
	}
}
